import {localpost} from '@/apis/ajax.js'

//  添加商品到数据库，参数为uid，gid，count(数量可选，默认为1)
export function insertProductToShopcart(data) {
    return localpost('/shopcart/insertProductToShoppcart',data);
}

export function insertOrder(data) {
    return localpost('/order/createOrder',data);
}

export function insertOrderDetail(data){
    return localpost('/order/insertOrderDetail',data);
}

//插入商品评论
export function insertProductComment(data){
    return localpost('/comment/insertProductComment',data);
}
//添加用户到数据库
export function insertUser(data){
    return localpost('/user/register',data);
}